package com.cleargroup.magic.cleara

import android.util.Base64

/**
 * @author Afra55
 * @date 8/12/21
 * A smile is the best business card.
 */
object StaticUrl {
    fun getPrivacyUrl() :String{
        // https://gitee.com/xiaomayi0323/magicclear/raw/master/privacy.txt

        val url = "aHR0cHM6Ly9naXRlZS5jb20veGlhb21heWkwMzIzL21hZ2ljY2xlYXIvcmF3L21hc3Rlci9wcml2YWN5LnR4dA=="
        return String(Base64.decode(url, Base64.DEFAULT))
    }

    fun getTermsOfUsUrl():String {
        // https://gitee.com/xiaomayi0323/magicclear/raw/master/termsofuse.txt
        val url = "aHR0cHM6Ly9naXRlZS5jb20veGlhb21heWkwMzIzL21hZ2ljY2xlYXIvcmF3L21hc3Rlci90ZXJtc29mdXNlLnR4dA=="
        return String(Base64.decode(url, Base64.DEFAULT))
    }
}